# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-scummvm
pkgver=0_git20210325
pkgrel=0
_commit="6df2bdf73cc9596dbc0ef395d78e48a93e0854be"
pkgdesc="ScummVM with libretro backend"
url="https://github.com/libretro/scummvm"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/scummvm/archive/$_commit.tar.gz"
builddir="$srcdir/scummvm-$_commit"
options="!check" # No tests

build() {
	make -C backends/platform/libretro/build
}

package() {
	install -Dm644 backends/platform/libretro/build/scummvm_libretro.so \
		"$pkgdir"/usr/lib/libretro/scummvm_libretro.so
}

sha512sums="e15be722b56960c09202e22e47bc6d497bca4343c49a0611cc5c98999ff2b8a67fee7b11e43e90574de5f642217cd6c2f92c92f58d87b4f87a7b4a5487b33f94  libretro-scummvm-6df2bdf73cc9596dbc0ef395d78e48a93e0854be.tar.gz"
